]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Use menu items as actors
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Fri, 12 Apr 2019 21:01:09 +0000 (16:01 -0500)
committerFlorian Müllner <florian.muellner@gmail.com>
Wed, 15 May 2019 17:27:08 +0000 (17:27 +0000)
All menu items are actors now, so remove all the actor property usages.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/499

js/ui/panel.js

index 5d3d779a02e8f3c77bfe73d08bb0633b8582af81..6522e9099789139bed71784e43f191cd3ac2ca9b 100644 (file)
@@ -122,7 +122,7 @@ class AppMenu extends PopupMenu.PopupMenu {
 
     _updateDetailsVisibility() {
         let sw = this._appSystem.lookup_app('org.gnome.Software.desktop');
-        this._detailsItem.actor.visible = (sw != null);
+        this._detailsItem.visible = (sw != null);
     }
 
     isEmpty() {
@@ -160,7 +160,7 @@ class AppMenu extends PopupMenu.PopupMenu {
             });
         });
 
-        this._newWindowItem.actor.visible =
+        this._newWindowItem.visible =
             app && app.can_open_new_window() && !actions.includes('new-window');
     }